package com.atguigu.eduorder.client;

import com.atguigu.commonutils.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author 25169
 */
@FeignClient(value = "service-ucenter")
public interface UcenterClient {

    @GetMapping("/educenter/ucentermember/getInfo")
    UcenterMember getInfo(@RequestParam String id);

    @GetMapping("/educenter/ucentermember/getInfos/{id}")
    Map<String,String> getInfos(@PathVariable String id);
}
